package com.eastfair.pay.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 付款记录
 * </p>
 *
 * @author clm
 * @since 2022-06-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "PaymentRecordSaveDTO", description = "付款记录")
public class PaymentRecordSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 收款单位id
     */
    @ApiModelProperty(value = "收款单位id")
    @TableField(value = "company_id")
    private Long companyId;
    /**
     * 收款单位
     */
    @ApiModelProperty(value = "收款单位")
    @Size(max = 255, message = "收款单位长度不能超过255")
    private String companyName;
    /**
     * 对方户名
     */
    @ApiModelProperty(value = "对方户名")
    @Size(max = 255, message = "对方户名长度不能超过255")
    private String bankAccountName;
    /**
     * 对方账号
     */
    @ApiModelProperty(value = "对方账号")
    @Size(max = 35, message = "对方账号长度不能超过35")
    private String bankAccountNumber;
    /**
     * 开户行
     */
    @ApiModelProperty(value = "开户行")
    @Size(max = 255, message = "开户行长度不能超过255")
    private String bankName;
    /**
     * 付款金额
     */
    @ApiModelProperty(value = "付款金额")
    private BigDecimal payAmount;
    /**
     * 付款时间
     */
    @ApiModelProperty(value = "付款时间")
    private LocalDateTime payTime;
    /**
     * 认款状态
     */
    @ApiModelProperty(value = "认款状态")
    private String collectState;
    /**
     * 认领金额
     */
    @ApiModelProperty(value = "认领金额")
    private BigDecimal collectAmount;
    /**
     * 付款方式(数据字典)
     */
    @ApiModelProperty(value = "付款方式(数据字典)")
    @Size(max = 255, message = "付款方式(数据字典)长度不能超过255")
    private String payType;
    /**
     * 付款流水号
     */
    @ApiModelProperty(value = "付款流水号")
    @Size(max = 255, message = "付款流水号长度不能超过255")
    private String mainno;

    /**
     * 单号
     */
    @ApiModelProperty(value = "单号")
    private String businessCode;
}
